<script type="text/javascript">
    $(function() {
        $('.dropdown-toggle').dropdown();
        $('.span2').tooltip();
    });
    
    $('#myModal').modal()
</script>
<div class="navbar" style="margin-bottom: 10px; padding: 0px;">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand">TGC</a>
            <div class="nav-collapse collapse navbar-responsive-collapse">
                <ul class="nav">
                    <li<?php checkMenuActive('anasayfa'); ?>><a href="index.php">Ana Sayfa</a></li>
                    <li<?php checkMenuActive('top250'); ?>><a href="index.php?module=top250">Top 250</a></li>
                    <li<?php checkMenuActive('sosyalag'); ?>><a href="index.php?module=sosyalag">Sosyal Ağ</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Kategoriler <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li class="divider"></li>
                            <li class="nav-header">Nav header</li>
                            <li><a href="#">Separated link</a></li>
                            <li><a href="#">One more separated link</a></li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav pull-right">
                    <li><a>Ara:</a></li>
                    <li class="divider-vertical"></li>
                    <li>
                        <form class="navbar-search pull-left" action="index.php?module=ara" method="post">
                            <div class="input-append">
                              <input class="span2"  placeholder="Search" id="appendedInputButton" type="text" rel="tooltip" data-placement="bottom" data-original-title="Oyun, Firma, Oyuncu Ara!">
                              <input type="submit" class="btn" type="button" value="Ara!">
                            </div>
                        </form>
                    </li>
                    <li class="divider-vertical"></li>
                     <li class="dropdown">
                        <?php
                            if(isset($_SESSION['id']))
                            {
                                ?>
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">PROFİL<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="index.php?module=giris"><b class="icon-envelope"></b> Mesajlar</a></li>
                                    <li><a href="index.php?module=giris"><b class="icon-info-sign"></b> Profilim</a></li>
                                    <li><a href="index.php?module=sifremiunuttum"><b class="icon-wrench"></b> Hesap Ayarları</a></li>
                                    <li><a href="index.php?module=uyeol"><b class="icon-off"></b> Çıkış</a></li>
                                </ul>
                                <?php
                            }
                            else
                            {
                                ?>
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">GİRİŞ<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="index.php?module=giris" data-toggle="modal"><b class="icon-user"></b> Kullanıcı Girişi</a></li>
                                    <li><a href="index.php?module=sifremiunuttum"><b class="icon-plus-sign"></b> Şifremi Unuttum</a></li>
                                    <li><a href="index.php?module=uyeol"><b class="icon-question-sign"></b> Üye Ol</a></li>
                                </ul>
                                <?php
                            }
                        ?>
                     </li>
                </ul>
            </div><!-- /.nav-collapse -->
        </div>
    </div><!-- /navbar-inner -->
</div>
